<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: xuweijie
  Date: 17-5-6
  Time: 下午4:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<form class="layui-form" >

    <div class="layui-form-item">
        <label class="layui-form-label">父级菜单</label>
        <div class="layui-input-block">
            <select name="parentId" lay-verify="required">
                <option value="0">根目录</option>
                <c:forEach items="${showMenuVos}" var="pmenu">
                    <option value="${pmenu.id}">${pmenu.menuname}</option>
                </c:forEach>
            </select>
        </div>
    </div>

    <div class="layui-form-item" id="menu-group">
        <div class="input-group">
            <label class="layui-form-label">菜单名</label>
            <div class="layui-input-block">
                <input type="text" name="menus" required lay-verify="required" placeholder="请输入菜单名" autocomplete="off" class="layui-input">
            </div>
            <br>
            <label class="layui-form-label">链接</label>
            <div class="layui-input-block">
                <input type="text" name="menusurl"  placeholder="请输入链接" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-input-block">
            <br>
            <a class="layui-btn layui-btn-primary layui-btn-small" onclick="addmore();"><i class="layui-icon"></i></a>
            <a class="layui-btn layui-btn-primary layui-btn-small" onclick="removelast();"><i class="layui-icon"></i></a>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
